package org.linlinjava.litemall.admin.vo;

import org.linlinjava.litemall.db.domain.LitemallGoods;
import org.linlinjava.litemall.db.domain.LitemallGoodsAttribute;
import org.linlinjava.litemall.db.domain.LitemallGoodsProduct;
import org.linlinjava.litemall.db.domain.LitemallGoodsSpecification;

import java.util.List;

/**
 * 商品详情VO类
 * 包含商品基本信息以及所有子表信息
 */
public class GoodsDetailVo {
    
    /**
     * 商品基本信息
     */
    private LitemallGoods goods;
    
    /**
     * 商品规格列表
     */
    private List<LitemallGoodsSpecification> specifications;
    
    /**
     * 商品货品列表
     */
    private List<LitemallGoodsProduct> products;
    
    /**
     * 商品参数列表
     */
    private List<LitemallGoodsAttribute> attributes;

    public LitemallGoods getGoods() {
        return goods;
    }

    public void setGoods(LitemallGoods goods) {
        this.goods = goods;
    }

    public List<LitemallGoodsSpecification> getSpecifications() {
        return specifications;
    }

    public void setSpecifications(List<LitemallGoodsSpecification> specifications) {
        this.specifications = specifications;
    }

    public List<LitemallGoodsProduct> getProducts() {
        return products;
    }

    public void setProducts(List<LitemallGoodsProduct> products) {
        this.products = products;
    }

    public List<LitemallGoodsAttribute> getAttributes() {
        return attributes;
    }

    public void setAttributes(List<LitemallGoodsAttribute> attributes) {
        this.attributes = attributes;
    }

    @Override
    public String toString() {
        return "GoodsDetailVo{" +
                "goods=" + goods +
                ", specifications=" + specifications +
                ", products=" + products +
                ", attributes=" + attributes +
                '}';
    }
} 